<%-- 
    Document   : forward
    Created on : Jun 17, 2013, 6:42:49 PM
    Author     : Acer
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <%
                double freeMem = Runtime.getRuntime().freeMemory();
                double totlMem = Runtime.getRuntime().totalMemory();
                double percent = freeMem / totlMem;
                if (percent < 0.5) {
    %>
    <jsp:forward page="/JSP/one.jsp"/>
    <%} else {%>
    <jsp:forward page="/JSP/two.jsp"/>
    <%}%>
</html>
